import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;


public class Main
{
	public static void main(String[] args) throws Exception
	{
		ANTLRInputStream input = new ANTLRInputStream(System.in);
		DemoLexer lexer  = new DemoLexer(input);
		
		CommonTokenStream tokens = new CommonTokenStream(lexer);
		
		DemoParser parser = new DemoParser(tokens);
		ParseTree tree = parser.start();
		new MyDemoVisitor().visit(tree);
	
	}
}